package lib.wzh.com.libcore.framework.validated.annotation;

import lib.wzh.com.libcore.framework.validated.constraintValidator.SpecifyListConstraintValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Author lib
 * @Date 2021/12/11 20:57
 * @ClassName SpecifyList
 * @Version v1.0
 */

@Documented
@Constraint(validatedBy = {SpecifyListConstraintValidator.class})
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SpecifyList {

    String message() default "{lib.wzh.com.libcore.framework.validated.annotation.SpecifyList.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    int[] value() default {};



}
